package com.utoronto;

import com.utoronto.R;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;



public class Assign1 extends Activity {
	
	public int count;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        count = 0; 
        setContentView(R.layout.main);
        
    }
    

    public void onChangeClick(View v) { 
          count++;
          TextView textview = (TextView) findViewById(R.id.textEmpty);
          textview.setText("The Change Button has been pressed "+ count +" times.");
        } 
    
    public void onPictureClick(View v){
    	ImageView im = (ImageView) findViewById(R.id.PicView);
    	if (im.getVisibility() == View.VISIBLE)
    		im.setVisibility(View.INVISIBLE);
    	else 
    		im.setVisibility(View.VISIBLE);
    }
   
  }

